/*
 * @Descripttion: 
 * @version: 
 * @Author: by
 * @Date: 2021-05-20 15:50:35
 * @LastEditors: tc
 * @LastEditTime: 2022-03-08 15:43:52
 */
module.exports = {
    // publicPath: process.env.NODE_ENV === "development" ? "/" : "/",
    // outputDir: 'xf-government',
    productionSourceMap:false,
    devServer: {
        open: true,
        //  host: '127.0.0.1',
        // host: '10.10.0.130',
        port: 8000,
        https: false,
        hotOnly: false,
        /* 使用代理 */
        proxy: {
            '/': {
                // target: "http://10.10.0.102:8080",
                target: "http://10.10.0.102:8080",
                changeOrigin: true,
                pathRewrite: {
                    '^/': '/'
                }
            },
            '/xfys': {
                // target: "http://114.116.31.37:8080",
                // target: "http://10.10.0.105:8080",//yyh
                  // target: "http://10.10.0.120:8008",
                //   target: "http://10.10.0.102:8080",
                // target: "http://10.10.0.211:8080",
                target: "http://10.10.0.102:8080",
                changeOrigin: true,
                pathRewrite: {
                    '^/xfys': '/xfys'
                }
            },
           
        },
    },
    chainWebpack: config => {
        const oneOfsMap = config.module.rule('scss').oneOfs.store
        oneOfsMap.forEach(item => {
          item
            .use('sass-resources-loader')
            .loader('sass-resources-loader')
            .options({
              resources: './src/assets/css/global.scss',
            })
            .end()
        })
      }
}
